package com.lyj.cloud.controller;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.lyj.cloud.dto.Organization;
import com.lyj.cloud.service.OrganizationService;

@RestController
public class SpringCloudConsumerController {

	@Resource
	private OrganizationService organizationService;
	
	@RequestMapping({"","/org"})
	public List<Organization> listOrg() {
		return organizationService.list();
	}
}
